﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Globalization;
using System.Text.RegularExpressions;
using System.IO;

namespace VideoClipNameHelper
{
    public class PathItems
    {
        public string Directory{get;set;}
        public string FileName{get;set;}
        public string Ext{get;set;}
        //
        //
        public PathItems(string pathname)
        {
            Split(pathname);
        }
        //
        public void Split(string pathname)
        {
            Directory=System.IO.Path.GetDirectoryName(pathname);
            FileName=System.IO.Path.GetFileNameWithoutExtension(pathname);
            Ext=System.IO.Path.GetExtension(pathname);
        }

        public string Combine()
        {
            return System.IO.Path.Combine(Directory,FileName)+Ext;
        }
        //
        //
    }

}